package com.travel.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("orders")
public class Order {
    private Long id;
    private Long userId;
    private Integer resourceType; // 1:景区门票 2:酒店预订
    private Long resourceId;    //资源id
    private Integer status; // 1:待支付 2:已支付 3:已使用 4:已评价 5:已取消
    private Date createdAt; //创建时间
    private String cancelReason;  //取消原因
    private Integer amount;
}